﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

#nullable disable

namespace T4.Console.Db.Models
{
    [Table("Sys_Dictionary")]
    [Index(nameof(CodeType), nameof(Code), Name = "AK_KEY_2_Sys_Dictionary", IsUnique = true)]
    [Index(nameof(CodeType), Name = "Index_CodeType")]
    public partial class Sys_Dictionary
    {
        [Key]
        [StringLength(36)]
        public string Id { get; set; }
        public int Category { get; set; }
        [Required]
        [StringLength(50)]
        public string CodeType { get; set; }
        [Required]
        [StringLength(200)]
        public string Name { get; set; }
        [Required]
        [StringLength(50)]
        public string Code { get; set; }
        [StringLength(500)]
        public string Value { get; set; }
        public int Sort { get; set; }
        [StringLength(200)]
        public string Remark { get; set; }
        public bool IsActive { get; set; }
        public bool? IsShow { get; set; }
        [StringLength(36)]
        public string CreatedBy { get; set; }
        [Column(TypeName = "datetime")]
        public DateTime? CreatedTime { get; set; }
        [StringLength(36)]
        public string LastModifiedBy { get; set; }
        [Column(TypeName = "datetime")]
        public DateTime? LastModifiedTime { get; set; }
    }
}
